 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
    <link rel="stylesheet" type="text/css" href="/css/bbs.css">

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>

<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
    
    <!--컨텐츠-->
	<div id="content">
		<!--휘장-->
		<div class="keybox1"> </div>
		<!--휘장-->
		
		<p class="key_visual"><img src="/images/sub/cs/cs_visual.png" alt="고객센터" /></p>

		<!--왼쪽 컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->

			<!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme2.php'; ?>
			<!--//추천테마-->

			<!--고객센터-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/cs.php'; ?>
			<!--//고객센터_추가-->
		</div>
		<!--//왼쪽 컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="cont">
        	
			<div class="bbs">
				<h3><?=$category_title?></h3>
				<!--게시판-->
				<div class="list">
					<table width="100%" summary="공지사항 게시판입니다" cellpadding="0" cellspacing="0">
						<caption class="blind">게시판 목록보기</caption>
						<colgroup>
							<col width="10%" />
							<col width="*" />
							<col width="10%" />
							<col width="10%" />
							<col width="15%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="no">번호</th>
								<th scope="col" class="tle">제목</th>
								<th scope="col" class="writer">작성자</th>
								<th scope="col" class="hit">조회수</th>
								<th scope="col" class="date">작성일</th>
							</tr>
						</thead>
						<tbody>
						<?	foreach ($list as $item) :?>
							<tr>
								<td class="no"><?=$rownum--?></td>
								<td class="tle"><a href="<?=$read_url.$item['idx']?>"><?=$item['subject']?></a><span class="reply">(<?=$item['reply_cnt']?>)</span></td>
								<td class="writer"><?=$item['nickname']?></td>
								<td class="hit"><?=$item['hit']?></td>
								<td class="date"><?=substr($item['create_dt'], 0,10)?></td>
							</tr>
						<?	endforeach ?>
						</tbody>
						<tfoot>
							<tr>
								<td colspan="6" class="boardbt_area">
									<?	if (!empty($_GET['search_keyword'])) : ?>
										<a href="<?=$uri?>"><img src="/images/common/board/bt_list.png" alt="목록" /></a>
									<?	endif ?>
								</td>
							</tr>
							<tr>
								<td colspan="6">
									<!--a href="#" class="btn"><img src="/images/common/board/page_first.png" alt="첫 페이지로" /></a-->
									
									<?	if (!empty($navi['prev_page_link'])) : ?>
										<a href="/<?=$navi['prev_page_link']?>" class="btn"><img src="/images/common/board/page_prev.png" alt="이전 페이지로" /></a> 
									<?	endif ?>
									
									<?	for ($i = 0; $i < count($navi['page_nums']); $i++) : ?>
									<?		if (!empty($navi['page_nums'][$i]['url'])) : ?>
												<a href="/<?=$navi['page_nums'][$i]['url']?>"><?=$navi['page_nums'][$i]['page_no']?></a>
									<?		else : ?>
												<a href="javascript:;" class="over"><?=$navi['page_nums'][$i]['page_no']?></a>
									<?		endif ?>
									<?	endfor ?>

									<?	if (!empty($navi['page_count'])) : ?>
										...<a href="/<?=$navi['page_count_link']?>"><?=$navi['page_count']?></a>
									<?	endif ?>

									<?	if (!empty($navi['next_page_link'])) : ?>
										<a href="/<?=$navi['next_page_link']?>" class="btn"><img src="/images/common/board/page_next.png" alt="다음 페이지로" align=""/></a>
									<?	endif ?>
									
									<!--a href="" class="btn"><img src="/images/common/board/page_end.png" alt="마지막 페이지로" /></a-->
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
				<!--//게시판--> 
				
				<div class="seach">
					<form action="<?=$uri?>" method="get">
						<fieldset>
							<legend>게시판 검색하기</legend>
							<p>
								<select name="search_type" id="search" title="검색어 분류선택" class="input_select">
									<option value="subject">제목</option>
									<option value="nickname">작성자</option>
									<option value="content">내용</option>
								</select>
								<input type="text" name="search_keyword" id="search_keyword" maxlength="30" title="검색어 입력" class="inpText" />
								<input type="image" src="/images/common/board/bt_seach.png" alt="검색" align="top" />
							</p>
						</fieldset>
					</form>
				</div>
			</div>
			<!--리스트--> 
            </div>
            <!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
		</div>
		<!--// 메인컨텐츠-->
        
	</div>
	<!--컨텐츠-->
	
	

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
</body>
</html>